from pygments.lexer import combined

print("欢迎使用爱情计算器...")
print("#" * 30)

name_1 = input("请输入第一个名字(英文或拼音)：").lower()
name_2 = input("请输入第二个名字(英文或拼音)：").lower()

combined_name = name_1 + name_2

# true love 计算名字中包含这几个字母的次数

t = combined_name.count("t")
r = combined_name.count("r")
u = combined_name.count("u")
e = combined_name.count("e")

score_1 = t + r + u + e

l = combined_name.count("l")
o = combined_name.count("o")
v = combined_name.count("v")
e_2 = combined_name.count("e")

score_2 = l + o + v + e_2

final_score = int(str(score_1) + str(score_2))


if final_score <= 10 or final_score >= 90:
    print(f"你们的爱情分数是：{final_score}, 你们的爱情是：天作之合！")
elif 40 <= final_score <= 50:
    print(f"你们的爱情分数是：{final_score}, 你们的爱情是：适合结婚！")
else:
    print(f"你们的爱情分数是：{final_score}, 你们的爱情是：适合谈恋爱！")

